import { myEnv } from '@/myEnv';
import { Immit } from '@/utils';
import { Product_Web } from '@/pages/_server/_class/Product/Product';

export abstract class MyOrderList_Abs extends Immit {
    /** 订单id */
    id?: string = '';
    /** 用户手机号 */
    userPhoneNumber?: string = '';
    /** 订单创建时间 */
    createTime: DeteStr = '';
    /** 金额 */
    price: DeteStr = '';
    /** 商品id */
    goodsId: string = '';
    /** 订单状态 */
    status: string = '';
    /** 订单支付方式 */
    paymentMethod: string = '';
}

export class MyOrderList_Res extends MyOrderList_Abs {}

export class MyOrderList_Web extends MyOrderList_Abs {
    /** 商品信息 */
    product: Product_Web = new Product_Web();
    immit_response?(data: Partial<MyOrderList_Res>) {
        this.immit(data);
        return this;
    }
    immit_product?(data: Product_Web) {
        this.product = new Product_Web().immit(data);
        return this;
    }
}
